<?php /* Smarty version Smarty-3.1.21-dev, created on 2018-03-07 15:22:36
         compiled from "/data/wwwroot/61kq.com/uploads/app/template/member/user/index.htm" */ ?>
<?php /*%%SmartyHeaderCode:6061157455a9f933cdee1a1-80568045%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9b96bbae18eca0c9cc7e8bb549434c390e588641' => 
    array (
      0 => '/data/wwwroot/61kq.com/uploads/app/template/member/user/index.htm',
      1 => 1519868586,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6061157455a9f933cdee1a1-80568045',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'resume' => 0,
    'uid' => 0,
    'user_photo' => 0,
    'config' => 0,
    'wenhou' => 0,
    'username' => 0,
    'statis' => 0,
    'yqnum' => 0,
    'lookNum' => 0,
    'ainfo' => 0,
    'alist' => 0,
    'rlist' => 0,
    'blist' => 0,
    'userclass_name' => 0,
    'userdata' => 0,
    'v' => 0,
    'time' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_5a9f933d0115b1_07823997',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5a9f933d0115b1_07823997')) {function content_5a9f933d0115b1_07823997($_smarty_tpl) {?><?php if (!is_callable('smarty_function_url')) include '/data/wwwroot/61kq.com/uploads/app/include/libs/plugins/function.url.php';
if (!is_callable('smarty_function_sign')) include '/data/wwwroot/61kq.com/uploads/app/include/libs/plugins/function.sign.php';
if (!is_callable('smarty_modifier_date_format')) include '/data/wwwroot/61kq.com/uploads/app/include/libs/plugins/modifier.date_format.php';
?><?php global $db,$db_config,$config;
		$time = time();
		
		
		
        eval('$paramer=array("jobwhere"=>"\'auto.jobwhere\'","namelen"=>"19","comlen"=>"13","limit"=>"8","item"=>"\'blist\'","nocache"=>"")
;');
		$ParamerArr = GetSmarty($paramer,$_GET,$_smarty_tpl);
		$paramer = $ParamerArr[arr];
        $Purl =  $ParamerArr[purl];
        global $ModuleName;
        if(!$Purl["m"]){
            $Purl["m"]=$ModuleName;
        }
		include_once  PLUS_PATH."/comrating.cache.php";
		include(CONFIG_PATH."db.data.php"); 
		if($config[sy_web_site]=="1"){
			if($config[province]>0 && $config[province]!=""){
				$paramer[provinceid] = $config[province];
			}
			if($config[cityid]>0 && $config[cityid]!=""){
				$paramer[cityid] = $config[cityid];
			}
			if($config[three_cityid]>0 && $config[three_cityid]!=""){
				$paramer[three_cityid] = $config[three_cityid];
			}
			if($config[hyclass]>0 && $config[hyclass]!=""){
				$paramer[hy]=$config[hyclass];
			}
		}
		if($paramer[sdate]){
			$where = "`sdate`>".strtotime("-".intval($paramer[sdate])." day",time())." and `edate`>'$time' and `state`=1";
		}else{
			$where = "`state`=1 and `edate`>'$time'";
		}
        
		
		if($paramer[uid]){
			$where .= " AND `uid` = '$paramer[uid]'";
		}
		
		if($paramer[rec]){
			
			$where.=" AND `rec_time`>=".time();
			
		}
		
		if($paramer['cert']){
			$job_uid=array();
			$company=$db->select_all("company","`yyzz_status`=1","`uid`");
			if(is_array($company)){
				foreach($company as $v){
					$job_uid[]=$v['uid'];
				}
			}
			$where.=" and `uid` in (".@implode(",",$job_uid).")";
		}
		
		if($paramer[noid]){
			$where.= " and `id`<>$paramer[noid]";
		}
		
		if($paramer[r_status]){
			$where.= " and `r_status`=2";
		}else{
			$where.= " and `r_status`=1";
		}
		
		if($paramer[status]){
			$where.= " and `status`='1'";
		}else{
			$where.= " and `status`='0'";
		}
		
		if($paramer[pr]){
			$where .= " AND `pr` =$paramer[pr]";
		}
		
		if($paramer['hy']){
			$where .= " AND `hy` = $paramer[hy]";
		} 
		
		if($paramer[mun]){
			$where .= " AND `mun` = $paramer[mun]";
		}
	
		if($paramer[job1]){
			$where .= " AND `job1` = $paramer[job1]";
		}
		
		if($paramer[job1_son]){
			$where .= " AND `job1_son` = $paramer[job1_son]";
		}
		
		if($paramer[job_post]){
			$where .= " AND (`job_post` IN ($paramer[job_post]))";
		}
		
		if($paramer['jobwhere']){
			$where .=" and ".$paramer['jobwhere'];
		}
		
		if($paramer['jobids']){
			$where.= " AND (`job1` = $paramer[jobids] OR `job1_son`=$paramer[jobids] OR `job_post`=$paramer[jobids])";
		}
		
		if($paramer['jobin']){
			$where .= " AND (`job1` IN ($paramer[jobin]) OR `job1_son` IN ($paramer[jobin]) OR `job_post` IN ($paramer[jobin]))";
		}
		
		if($paramer[provinceid]){
			$where .= " AND `provinceid` = $paramer[provinceid]";
		}
	
		if($paramer['cityid']){
			$where .= " AND (`cityid` IN ($paramer[cityid]))";
		}
	
		if($paramer['three_cityid']){
			$where .= " AND (`three_cityid` IN ($paramer[three_cityid]))";
		}
		if($paramer['cityin']){
			$where .= " AND `three_cityid` IN ($paramer[cityin])";
		}
		
		if($paramer[edu]){
			$where .= " AND `edu` = $paramer[edu]";
		}
		
		if($paramer[exp]){
			$where .= " AND `exp` = $paramer[exp]";
		}
		
		if($paramer[report]){
			$where .= " AND `report` = $paramer[report]";
		}
		
		if($paramer[type]){
			$where .= " AND `type` = $paramer[type]";
		}
	
		if($paramer[sex]){
			$where .= " AND `sex` = $paramer[sex]";
		}
		
		
		if($paramer[mun]){
			$where .= " AND `mun` = $paramer[mun]";
		}
		if($paramer[minsalary]&&$paramer[maxsalary]){
			$where.= " AND ((`minsalary`<=".intval($paramer[minsalary])." and `maxsalary`>=".intval($paramer[minsalary]).") 
						or (`minsalary`<=".intval($paramer[maxsalary])." and `maxsalary`>=".intval($paramer[maxsalary])."))";
			
    	}elseif($paramer[minsalary]&&!$paramer[maxsalary]){
			$where.= " AND ((`minsalary`<=".intval($paramer[minsalary])." and `maxsalary`>=".intval($paramer[minsalary]).") 
						or (`minsalary`>=".intval($paramer[minsalary])." and `maxsalary`>=".intval($paramer[minsalary]).") 
						or (`minsalary`!=0 and  `maxsalary`=0))";
			
		}elseif(!$paramer[minsalary]&&$paramer[maxsalary]){
			$where.= " AND ((`minsalary`<=".intval($paramer[maxsalary])." and `maxsalary`>=".intval($paramer[maxsalary]).") 
						or (`minsalary`<=".intval($paramer[maxsalary])." and `maxsalary`<=".intval($paramer[maxsalary]).") 
						or (`minsalary`<=".intval($paramer[maxsalary])." and maxsalary=0) 
						or (`minsalary`=0 and  `maxsalary`!=0)
						)";
			
		}
       
        $cache_array = $db->cacheget();
		$comclass_name = $cache_array["comclass_name"];
		if($paramer[welfare]){
		    $welfarename=$comclass_name[$paramer[welfare]];
			$welfare=$db->select_all("company"," `welfare` LIKE '%".$welfarename."%'","`uid`");
			if(is_array($welfare)){
				foreach($welfare as $v){
					$welfareid[]=$v['uid'];
				}
			}
			$where .=" AND uid in (".@implode(",",$welfareid).")";
		}
		
		if($paramer[cityin]){
			$where .= " AND (`provinceid` IN ($paramer[cityin]) OR `cityid` IN ($paramer[cityin]) OR `three_cityid` IN ($paramer[cityin]))";
		}
		
		if($paramer[urgent]){
			$where.=" AND `urgent_time`>".time();
		}
		
		if($paramer[uptime]){
			if($paramer[uptime]==1){
				$beginToday=mktime(0,0,0,date('m'),date('d'),date('Y'));
    			$where.=" AND lastupdate>$beginToday";
    		}else{
    			$time=time();
				$uptime = $time-($paramer[uptime]*86400);
				$where.=" AND lastupdate>$uptime";
    		}
		}
		
		if($paramer[comname]){
			$where.=" AND `com_name` LIKE '%".$paramer[comname]."%'";
		}
		
		if($paramer[com_pro]){
			$where.=" AND `com_provinceid` ='".$paramer[com_pro]."'";
		}
	
		if($paramer[keyword]){
			$where1[]="`name` LIKE '%".$paramer[keyword]."%'";
			$where1[]="`com_name` LIKE '%".$paramer[keyword]."%'";
			include  PLUS_PATH."/city.cache.php";
			foreach($city_name as $k=>$v){
				if(strpos($v,$paramer[keyword])!==false){
					$cityid[]=$k;
				}
			}
			if(is_array($cityid)){
				foreach($cityid as $value){
					$class[]= "(provinceid = '".$value."' or cityid = '".$value."')";
				}
				$where1[]=@implode(" or ",$class);
			}
			$where.=" AND (".@implode(" or ",$where1).")";
		}
		
		if($paramer["job"]){
			$where.=" AND `job_post` in ($paramer[job])";
		}
		
		if($paramer[bid]){
			$where.="  and `xsdate`>'".time()."'";
		} 
		
		
		if($paramer[where]){
			$where = $paramer[where];
		}

		
		if($paramer[limit]){
			$limit = " limit ".$paramer[limit];
		}

		if($paramer[ispage]){
			$limit = PageNav($paramer,$_GET,"company_job",$where,$Purl,"",$paramer[islt]?$paramer[islt]:"6",$_smarty_tpl);
          
		} 
		
		if($paramer[order] && $paramer[order]!="lastdate"){
			$order = " ORDER BY ".str_replace("'","",$paramer[order])."  ";
		}else{
			$order = " ORDER BY `lastupdate` ";
		}
		
		if($paramer[sort]){
			$sort = $paramer[sort];
		}else{
			$sort = " DESC";
		} 
		$where.=$order.$sort;  
		 
		$blist = $db->select_all("company_job",$where.$limit);
		if(is_array($blist)){
		
			$cache_array = $db->cacheget();
			$comuid=$jobid=array();
			foreach($blist as $key=>$value){
				if(in_array($value['uid'],$comuid)==false){$comuid[] = $value['uid'];}
				if(in_array($value['id'],$jobid)==false){$jobid[] = $value['id'];} 
			}
			$comuids = @implode(',',$comuid);
			$jobids = @implode(',',$jobid);
			
			if($comuids){
				$r_uids=$db->select_all("company","`uid` IN (".$comuids.")","`uid`,`yyzz_status`,`logo`,`pr`,`hy`,`mun`,`shortname`,`welfare`");
				if(is_array($r_uids)){
					foreach($r_uids as $key=>$value){
						if($value[shortname]){
    						$value['shortname_n'] = $value[shortname];
    					}
						if(!$value['logo'] || !file_exists(str_replace('./',APP_PATH,$value['logo']))){
							$value['logo'] = $config['sy_weburl']."/".$config['sy_unit_icon'];
						}else{
							$value['logo']= $config['sy_weburl']."/".$value['logo'];
						}
						$value['pr_n'] = $cache_array['comclass_name'][$value[pr]];
						$value['hy_n'] = $cache_array['industry_name'][$value[hy]];
						$value['mun_n'] = $cache_array['comclass_name'][$value[mun]];
						$r_uid[$value['uid']] = $value;

					}
				}
			}
			    
			
			if($paramer[bid]){
				$noids=array();
			}	
			foreach($blist as $key=>$value){

				if($paramer[bid]){
					$noids[] = $value[id];
				}
				
				if($paramer[noids]==1 && !empty($noids) && in_array($value['id'],$noids)){
					unset($blist[$key]);
					continue;
				}else{
					$blist[$key] = $db->array_action($value,$cache_array);
					$blist[$key][stime] = date("Y-m-d",$value[sdate]);
					$blist[$key][etime] = date("Y-m-d",$value[edate]);
					if($arr_data['sex'][$value['sex']]){
						$blist[$key][sex_n]=$arr_data['sex'][$value['sex']];
					}
					$blist[$key][lastupdate] = date("Y-m-d",$value[lastupdate]);
					if($value[minsalary]&&$value[maxsalary]){
						$blist[$key][job_salary] =$value[minsalary]."-".$value[maxsalary];
					}elseif($value[minsalary]){
						$blist[$key][job_salary] =$value[minsalary]."以上";
					}else{
						$blist[$key][job_salary] ="面议";
					}
					if($r_uid[$value['uid']][shortname]){
						$blist[$key][com_name] =$r_uid[$value['uid']][shortname];
					}
					$blist[$key][yyzz_status] =$r_uid[$value['uid']][yyzz_status];
					$blist[$key][logo] =$r_uid[$value['uid']][logo];
					$blist[$key][pr_n] =$r_uid[$value['uid']][pr_n];
					$blist[$key][hy_n] =$r_uid[$value['uid']][hy_n];
					$blist[$key][mun_n] =$r_uid[$value['uid']][mun_n];
					if($r_uid[$value['uid']][welfare]){
						$welfareList = @explode(',',$r_uid[$value['uid']][welfare]);

						if(!empty($welfareList)){
							$blist[$key][welfarename] =$welfareList;
						}
					}
					
					

					$time=$value['lastupdate'];
					
					$beginToday=mktime(0,0,0,date('m'),date('d'),date('Y'));
					
					$beginYesterday=mktime(0,0,0,date('m'),date('d')-1,date('Y'));
					
					$week=strtotime(date("Y-m-d",strtotime("-1 week")));
					if($time>$week && $time<$beginYesterday){
						$blist[$key]['time'] ="一周内";
					}elseif($time>$beginYesterday && $time<$beginToday){
						$blist[$key]['time'] ="昨天";
					}elseif($time>$beginToday){	
						$blist[$key]['time'] = date("H:i",$value['lastupdate']);
						$blist[$key]['redtime'] =1;
					}else{
						$blist[$key]['time'] = date("Y-m-d",$value['lastupdate']);
					}
					
					
					
					if($paramer[comlen]){
						if($r_uid[$value['uid']][shortname]){
							$blist[$key][com_n] = mb_substr($r_uid[$value['uid']][shortname],0,$paramer[comlen],"utf-8");
						}else{
							$blist[$key][com_n] = mb_substr($value['com_name'],0,$paramer[comlen],"utf-8");
						}
					}
					
					if($paramer[namelen]){
						if($value['rec_time']>time()){
							$blist[$key][name_n] = "<font color='red'>".mb_substr($value['name'],0,$paramer[namelen],"utf-8")."</font>";
						}else{
							$blist[$key][name_n] = mb_substr($value['name'],0,$paramer[namelen],"utf-8");
						}
					}else{
						if($value['rec_time']>time()){
							$blist[$key]['name_n'] = "<font color='red'>".$value['name']."</font>";
						}
					}
					
					$blist[$key][job_url] = Url("job",array("c"=>"comapply","id"=>$value[id]),"1");
					
					$blist[$key][com_url] = Url("company",array("c"=>"show","id"=>$value[uid]));
					foreach($comrat as $k=>$v){
						if($value[rating]==$v[id]){
							$blist[$key][color] = str_replace("#","",$v[com_color]);
							$blist[$key][ratlogo] = $v[com_pic];
							$blist[$key][ratname] = $v[name];
						}
					}
					if($paramer[keyword]){
						$blist[$key][name]=str_replace($paramer[keyword],"<font color=#FF6600 >".$paramer[keyword]."</font>",$value[name]);
						$blist[$key][com_name]=str_replace($paramer[keyword],"<font color=#FF6600 >".$paramer[keyword]."</font>",$value[com_name]);
						$blist[$key][name_n]=str_replace($paramer[keyword],"<font color=#FF6600 >".$paramer[keyword]."</font>",$blist[$key][name_n]);
						$blist[$key][com_n]=str_replace($paramer[keyword],"<font color=#FF6600 >".$paramer[keyword]."</font>",$blist[$key][com_n]);
						$blist[$key][job_city_one]=str_replace($paramer[keyword],"<font color=#FF6600 >".$paramer[keyword]."</font>",$city_name[$value[provinceid]]);
						$blist[$key][job_city_two]=str_replace($paramer[keyword],"<font color=#FF6600 >".$paramer[keyword]."</font>",$city_name[$value[cityid]]);
					}
				}
			}

			if(is_array($blist)){
				if($paramer[keyword]!=""&&!empty($blist)){
					addkeywords('3',$paramer[keyword]);
				}
			}
		} ?>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['userstyle']->value)."/header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 

<div id="bg" <?php if ($_smarty_tpl->tpl_vars['resume']->value['name']=='') {?>style="display:block"<?php }?>></div>
<div class="yun_w1200" >
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['userstyle']->value)."/left.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<!--fristtck start-->
<div class="index_no_resume_box" id="yingdao" style="display:none;">
	<div class="index_no_resume_cont">
		<div class="index_no_resume_p"> 
			<div class="index_no_resume_h1">请先填写简历信息 </div>
			<div class="index_no_resume_p_t">你没有创建简历，无法申请职位<br>为了更快的找到工作，需填写个人简历！</div>
			<a href="index.php?c=expect&add=<?php echo $_smarty_tpl->tpl_vars['uid']->value;?>
" class=" index_no_resume_bth"> 创建简历 </a>
           <a href="javascript:Close_yd();" class="close_yd">好,知道了</a>
		</div>

	</div>
</div>
<!--fristtck end-->  
  
  
  <div class="yun_m_rightsidebar">
  <div class="yun_m_indexinfo">
  
  <div class="yun_m_indexinfo_cont">
 
  <div class="yun_m_indexinfo_photo">
  <a href="index.php?c=uppic"> 
    <?php if ($_smarty_tpl->tpl_vars['resume']->value['sex']==1) {?>
    <img src=".<?php echo $_smarty_tpl->tpl_vars['user_photo']->value;?>
" border="0" height="80" width="80" onerror="showImgDelay(this,'<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_member_icon'];?>
',2);"/>
    <?php } else { ?>
    <img src=".<?php echo $_smarty_tpl->tpl_vars['user_photo']->value;?>
" border="0" height="80" width="80" onerror="showImgDelay(this,'<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_member_iconv'];?>
',2);"/>
     <?php }?>     
</a>
  </div>
  
  <div class="yun_m_indexinfo_user">
  <div class="yun_m_indexinfo_user_p"> <span class="yun_m_indexinfo_user_hi"><?php echo $_smarty_tpl->tpl_vars['wenhou']->value;?>
</span>  <?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</div>
 
  <div class="yun_m_indexinfo_user_bding">
  
   <div class="yun_m_indexinfo_user_bding_p"><a href="index.php?c=passwd"><?php if ($_smarty_tpl->tpl_vars['resume']->value['moblie_status']!='1') {?>
<span class="yun_user_rz_box yun_user_rz_sj"><i class="yun_user_rz_no_icon"></i><em class="yun_user_rz_no">手机未验证</em></span>
<?php } else { ?>
<span class="yun_user_rz_box yun_user_rz_sj"><i class="yun_user_rz_yes_icon"></i><em class="yun_user_rz_yes">手机已验证</em></span>
<?php }?></a> </div>
<div class="yun_m_indexinfo_user_bding_p"><a href="index.php?c=passwd"><?php if ($_smarty_tpl->tpl_vars['resume']->value['email_status']!='1') {?>
<span class="yun_user_rz_box yun_user_rz_yx"><i class="yun_user_rz_no_icon"></i><em class="yun_user_rz_no">邮箱未绑定</em></span>
<?php } else { ?>
<span class="yun_user_rz_box yun_user_rz_yx"><i class="yun_user_rz_yes_icon"></i><em class="yun_user_rz_yes">邮箱已绑定</em></span>
<?php }?></a>
</div>
<div class="yun_m_indexinfo_user_bding_p"><a href="index.php?c=passwd"><?php if ($_smarty_tpl->tpl_vars['resume']->value['idcard_status']!='1') {?>
<span class="yun_user_rz_box yun_user_rz_sf"><i class="yun_user_rz_no_icon"></i><em class="yun_user_rz_no">身份未验证</em></span>
<?php } else { ?>
<span class="yun_user_rz_box yun_user_rz_sf"><i class="yun_user_rz_yes_icon"></i><em class="yun_user_rz_yes">身份已验证</em></span>
<?php }?>
</a>
</div>

</div>
  <div class="yun_m_indexinfo_user_xg"><a href="index.php?c=info" class="yun_m_indexinfo_user_xg_a">修改个人信息></a></div>
	
	</div>
    
     <div class="yun_m_index_pay">
 我的<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
：<span class="yun_m_index_pay_n"><?php echo $_smarty_tpl->tpl_vars['statis']->value['integral'];?>
</span> <?php echo $_smarty_tpl->tpl_vars['config']->value['integral_priceunit'];
echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>

 <div class="yun_m_index_pay_p"><a href="index.php?c=pay" class="yun_m_index_pay_a">充值</a>       
 <a href="<?php echo smarty_function_url(array('m'=>'redeem'),$_smarty_tpl);?>
" class="yun_m_index_pay_a" target="_blank">兑换礼品</a>    
 <a href="index.php?c=integral" class="yun_m_index_pay_a">赚<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
</a>   
 </div>
<div class="yun_m_indexinfo_user_bding_sth"><div class="yun_m_indexinfo_user_qd">
		<i class="yun_m_indexinfo_user_qd_icon"></i><?php echo smarty_function_sign(array(),$_smarty_tpl);?>
</div> </div> 
 </div> 
    


</div>
</div>
<div class="yun_m_index_data" style="display:none;">
<div class="yun_m_index_data_list"><a href="index.php?c=msg"><i class="yun_m_index_data_icon yun_m_index_data_icon_ms"></i><div class="yun_m_index_data_list_n"><?php if ($_smarty_tpl->tpl_vars['yqnum']->value=='') {?>0<?php } else { ?><i class="member_Information_amount_n_c"><?php echo $_smarty_tpl->tpl_vars['yqnum']->value;?>
</i><?php }?></div><div class="yun_m_index_data_list_p">面试通知</div></a></div>

<div class="yun_m_index_data_list"><a href="index.php?c=job"><i class="yun_m_index_data_icon yun_m_index_data_icon_sq"></i><div class="yun_m_index_data_list_n"><?php if ($_smarty_tpl->tpl_vars['statis']->value['sq_jobnum']<1) {?>0<?php } else {
echo $_smarty_tpl->tpl_vars['statis']->value['sq_jobnum'];
}?></div><div class="yun_m_index_data_list_p">申请记录</div></a></div>

<div class="yun_m_index_data_list"><a href="index.php?c=favorite"><i class="yun_m_index_data_icon yun_m_index_data_icon_sc"></i><div class="yun_m_index_data_list_n"><?php if ($_smarty_tpl->tpl_vars['statis']->value['fav_jobnum']<1) {?>0<?php } else {
echo $_smarty_tpl->tpl_vars['statis']->value['fav_jobnum'];
}?></div><div class="yun_m_index_data_list_p">收藏记录</div></a></div>
<div class="yun_m_index_data_list yun_m_index_data_list_end"><a href="index.php?c=look"><i class="yun_m_index_data_icon yun_m_index_data_icon_look"></i><div class="yun_m_index_data_list_n"><?php echo $_smarty_tpl->tpl_vars['lookNum']->value;?>
</div><div class="yun_m_index_data_list_p">谁看了我的简历</div></a></div>
</div>   <div class="yun_m_index_date_box">
  <div class="yun_user_index_jobmsg_gz  sxl">
<ul class="user_in_gz sxlist">
        <?php  $_smarty_tpl->tpl_vars['alist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['alist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ainfo']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['alist']->key => $_smarty_tpl->tpl_vars['alist']->value) {
$_smarty_tpl->tpl_vars['alist']->_loop = true;
?>
        <li>你关注的 <a href="<?php echo smarty_function_url(array('m'=>'company','c'=>'show','id'=>$_smarty_tpl->tpl_vars['alist']->value['uid']),$_smarty_tpl);?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['alist']->value['com_name'];?>
</a> 发布了<a href="<?php echo smarty_function_url(array('m'=>'job','c'=>'comapply','id'=>$_smarty_tpl->tpl_vars['alist']->value['id']),$_smarty_tpl);?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['alist']->value['name'];?>
</a> 职位</li>
        <?php } ?>
    </ul>
    </div>
  <div class="yun_m_index_date_box_tit"> 求职管理</div>
   <div class="yun_m_index_date_list">
   <div class="yun_m_index_datename">面试通知</div>
  <a href="index.php?c=msg"><div class="yun_m_index_date_n"> <?php echo $_smarty_tpl->tpl_vars['yqnum']->value;?>
</div></a>
 
  </div>
  <div class="yun_m_index_date_list">
   <div class="yun_m_index_datename">申请记录</div>
   <a href="index.php?c=job"><div class="yun_m_index_date_n"> <?php echo $_smarty_tpl->tpl_vars['statis']->value['sq_jobnum'];?>
</div></a>
 
  </div>
  
    <div class="yun_m_index_date_list">
   <div class="yun_m_index_datename">收藏记录</div>
   <a href="index.php?c=favorite"><div class="yun_m_index_date_n"> <?php echo $_smarty_tpl->tpl_vars['statis']->value['fav_jobnum'];?>
</div></a>
 
  </div>
   
   
    <div class="yun_m_index_date_list yun_m_index_date_list_end">
   <div class="yun_m_index_datename">谁看了我的简历</div>
   <a href="index.php?c=look"><div class="yun_m_index_date_n"> <?php echo $_smarty_tpl->tpl_vars['lookNum']->value;?>
</div></a>
 
  </div>
  
  
   </div> 






  <div class="yun_m_index_resume"> 
 
  <div class="yun_m_index_resume_tit">
  <div class="yun_m_index_resume_span">我的简历</div> 
  <span id="myresumelist"></span>

    <?php if (empty($_smarty_tpl->tpl_vars['rlist']->value)) {?> 
    <div class="member_index_no_resume">
      <p class="">你还没有创建简历，无法申请职位</p>
      <a href="index.php?c=expect&add=<?php echo $_smarty_tpl->tpl_vars['uid']->value;?>
" class="member_index_no_resume_a">创建简历</a> </div>
    <?php }?> 
	</div>
	  </div>
     <div class="member_right_box_banner fltL" style="width:100%; overflow:hidden"></div>
	 
 
    <div class="yun_m_index_job mt20 fltL">
       <div class="yun_m_index_job_tit"><span class="yun_m_index_job_tit_s">也许适合你的岗位</span></div>
    <?php if (empty($_smarty_tpl->tpl_vars['rlist']->value)) {?> 
    <!--     no  resume end ------------------------------------------------------------------------>
    <div class="member_right_no_job" >
      <div class="member_right_no_job_box ">
        <div class="yun_m_index_job_icon"> </div>
        <div class="member_right_no_jobr"> 创建简历以后，系统会根据您的简历，<br>
          通过后台算法为您匹配最适合您的招聘职位<br>
          <a href="index.php?c=expect&add=<?php echo $_smarty_tpl->tpl_vars['uid']->value;?>
" class="member_right_no_jobr_bth" style="text-decoration:underline">创建简历</a> </div>
      </div>
    </div>
	<?php } else { ?>
		<div class="member_right_job_box" >
			<ul id="joblist">
				
				<?php  $_smarty_tpl->tpl_vars['blist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['blist']->_loop = false;
$blist = $blist; if (!is_array($blist) && !is_object($blist)) { settype($blist, 'array');}
foreach ($blist as $_smarty_tpl->tpl_vars['blist']->key => $_smarty_tpl->tpl_vars['blist']->value) {
$_smarty_tpl->tpl_vars['blist']->_loop = true;
?>
					
					<li class="yun_index_joblist">
						<div class="yun_index_joblist_jobname"> <a href="<?php echo $_smarty_tpl->tpl_vars['blist']->value['job_url'];?>
" class="member_right_job_box_name cblue" target="_blank"><?php echo $_smarty_tpl->tpl_vars['blist']->value['name_n'];?>
</a> </div>
						<div class="yun_index_joblist_comname"><a href="<?php echo $_smarty_tpl->tpl_vars['blist']->value['com_url'];?>
"><?php echo $_smarty_tpl->tpl_vars['blist']->value['com_n'];?>
</a> </div>
						<div class="yun_index_joblist_xz"><span class="member_right_job_xz"><?php echo $_smarty_tpl->tpl_vars['blist']->value['job_salary'];?>
</span></div>
						<div class="yun_index_joblist_yq"><?php echo $_smarty_tpl->tpl_vars['blist']->value['job_city_two'];?>
 | <?php echo $_smarty_tpl->tpl_vars['blist']->value['job_edu'];?>
 | <?php echo $_smarty_tpl->tpl_vars['blist']->value['job_exp'];?>
经验</div>
					</li>

				<?php }
if (!$_smarty_tpl->tpl_vars['blist']->_loop) {
?>

					<div class="member_right_no_job">
						<div class="member_right_no_job_box ">
							<div class="yun_m_index_job_icon"> </div>
							<div class="yun_m_index_job_tip"> 没有适合的职位 </div>
						</div>
					</div>

				<?php } ?>

			</ul>
		</div>
	<?php }?> 
   </div> 
  
  
  </div>

<div class="clear">	</div>
</div>
<!--   Refresh  tck-->


<div id="shuaxin" class="" style="display:none;">
<div class="sx_pd">
<div class="sx_top">
<dl>
   <dt></dt>
   <dd>
       <div>今天还没刷新，刷新简历将<em class="sx_bot_or">简历排名提前</em><br/>让企业更容易看到你，<em class="sx_bot_or">提高求职成功率！</em></div>
       <div class="sx_top_t">
            <em class="sx_top_t_tt">刷新前请确认以下信息准确完整：</em>
            <p>手机号码：<?php echo $_smarty_tpl->tpl_vars['resume']->value['telphone'];?>
</p>
            <p>上次刷新时间：<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['rlist']->value['lastupdate'],"%Y-%m-%d %H:%M:%S");?>
</p>
            <div style="height:40px;">
            <div id="jobstatuslist"><p>求职状态：<?php echo $_smarty_tpl->tpl_vars['userclass_name']->value[$_smarty_tpl->tpl_vars['rlist']->value['jobstatus']];?>
 <a class="sx_top_t_xg"  href="#">修改</a></p></div>
			<div id="jobstatusupadte" style="display:none;">
			<span class="fl">求职状态：</span>
			<input style="float:left;" type="hidden" id="id" value="<?php echo $_smarty_tpl->tpl_vars['rlist']->value['id'];?>
">
			<div class="news_expect_text  news_expect_text_re5">
            <form class="layui-form">
                <div class="layui-form-item">
                  <div class="layui-input-inline" style="width:200px;">
                    <select name="jobstatus" lay-filter="" id="jobstatusid">
                      <option value="">请选择</option>
                      <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['userdata']->value['user_jobstatus']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['j']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
                      <option value="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['rlist']->value['jobstatus']==$_smarty_tpl->tpl_vars['v']->value) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['userclass_name']->value[$_smarty_tpl->tpl_vars['v']->value];?>
</option>
                      <?php } ?>
                    </select>
                  </div>
                </div>
            </form>
			</div></div>
			</div>
	  </div>
    </dd>
</dl>
</div>
</div>
<div class="sx_bot">
     <a class="sx_bot_sx" href="javascript:void(0)" onclick="resumerefresh(<?php echo $_smarty_tpl->tpl_vars['rlist']->value['id'];?>
);">刷新</a>
     <a class="sx_bot_qx" href="javascript:void(0)">取消</a>
</div>
</div>
			
<!--Refresh end-->
<?php echo '<script'; ?>
 type="text/javascript">
layui.use(['layer', 'form'], function(){
    var layer = layui.layer
    ,form = layui.form
    ,$ = layui.$;
    
	<?php if ($_smarty_tpl->tpl_vars['rlist']->value['name']!=''&&$_smarty_tpl->tpl_vars['rlist']->value['lastupdate']<$_smarty_tpl->tpl_vars['time']->value&&$_COOKIE['exprefresh']!='1'&&$_smarty_tpl->tpl_vars['config']->value['resume_sx']==2) {?>
	var shuaxinlayer = layer.open({
		type : 1,
		title : '刷新简历',
		closeBtn : 0,
		area : ['500px','333px'],
		content : $("#shuaxin")
	});
	$(".sx_bot_qx").click(function(){
		layer.close(shuaxinlayer);
	})
	<?php }?>

	<?php if ($_smarty_tpl->tpl_vars['rlist']->value['name']=='') {?>
	var rlayer = layer.open({
		type : 1,
		title : '温馨提示',
		closeBtn : 0,
		area : ['350px','230px'],
		content : $("#yingdao")
	});
	$(".close_yd").click(function(){
		layer.close(rlayer);
	})
	<?php }?>

});

//在本页面进行求职状态信息修改和保存
$(document).ready(function(){
	<?php if ($_smarty_tpl->tpl_vars['rlist']->value) {?>
		showresumelist()
	<?php }?> 

	$("#jobstatuslist").show();
	$("#jobstatusupadte").hide();
	$(".sx_top_t_xg").click(function(){
		$("#jobstatuslist").hide();
		$("#jobstatusupadte").show();
	});
	$('#show_resume').delegate('span', 'click', function () {
		$(this).parent().click();
    });
});

function show_resume(id) {
	if($(".index_resume_my_n #" + id).is(':hidden')){
		$(".index_resume_my_n #" + id).css('display', 'block');
	}else{
		$(".index_resume_my_n #" + id).css('display', 'none');
	}
}
function showresumelist(id){
	  $.get('index.php?c=index&act=resumeajax',{rand:Math.random(),id:id},function(data){
			var data=eval("("+data+")");
			var $html='<div class="member_index_resume_box" id="resumelist'+data.id+'" ><div class="member_index_resume_t"> <div class="yun_m_index_resume_QQ">'
   			if(data.r_status==1){
 	  			$html+='<font color="green">简历<br>已审核</font>';
   			}else if(data.r_status==0){
 	 		 	$html+='<font color="#f00">简历<br>审核中</font></span>';
   			}else if(data.r_status==3){
 	  			$html+='<font color="#f00">未通过<br>审核</font></span>';
   			}
   			// alert($html)
   			$html+='</div>'+
     				'<div class="member_index_resume_t_left">'+
       				'<div class="member_index_resume_t_name fltL">'+
         			'<div class="member_index_resume_t_name_l member_index_resume_t_name_w80 fltL"> 简历名称：</div>'+
         			'<div class="index_resume_my_n" id="show_resume" onclick="show_resume(\'resume_expect'+data.id+'\')"> '+data.resumelist+' </div>'+
         			'<div class="index_resume_my_ll">被浏览：'+data.hits+' 次 </div></div>'+
      				' <div class="member_index_resume_t_wz fltL">'+
        			' <div class="member_index_resume_t_name_l fltL"> 完整度 <span class="member_index_resume_t_wz_n">'+data.integrity+'%</span></div>'+
        			' <div class="member_index_resume_t_wzd"> '+
         			'<span class="member_index_resume_t_wz_b"> '+
         			'<em class="member_index_resume_t_wz_c" style="width:'+data.integrity+'%"><i class="ember_index_resume_t_wz_c_q"></i></em></span> '+
         			' </div></div>'+
      				'<div class="member_index_resume_job fltL"><span class="member_index_resume_t_name_l member_index_resume_t_name_w80 fltL">期望职位：</span>'+
      				'<span class="member_index_resume_jobname">'+data.jobname+'</span><span class="member_index_resume_jobxz">期望薪资：'+data.user_salary+'</span><span class="member_index_resume_time">更新时间：'+data.lastupdate+'</span> </div></div><div class="member_index_resume_t_cz fltR"><div  class="member_index_resume_set">';
     		if(data.status==2){
     			$html+='<a onClick="layer_del(\'\', \'index.php?c=privacy&act=up&status=1\');" href="javascript:void(0);"><i class="yun_user_index_r_yc"></i></a><a href="index.php?c=privacy"> <div class="yun_user_index_set_name">简历保密</div></a>';
     		}else{
     			$html+='<a onClick="layer_del(\'\', \'index.php?c=privacy&act=up&status=2\');" href="javascript:void(0);"><i class="yun_user_index_r_gk"></i></a><a href="index.php?c=privacy"> <div class="yun_user_index_set_name">简历公开</div></a>';
     		}
     		$html+='</div><div class="member_index_resume_t_cz_b">';
      		if(data.topdatetime>0){
     	 		$html+='<a href="javascript:void(0)" onclick="resumetop(\''+data.id+'\',\''+data.topdate+'\',\''+data.name+'\')" class="member_index_resume_t_cz_bth ">简历置顶</a>';
      		}else{
     	 		$html+= '<a href="javascript:void(0)" onclick="resumetop(\''+data.id+'\',\'\',\''+data.name+'\')" class="member_index_resume_t_cz_bth ">简历置顶</a>'; 
      		}
      		
       		if(data.doc>0){
     	 		$html+=' <a href="index.php?c=expectq&e='+data.id+'" class="member_index_resume_t_cz_bth ">修改简历</a> ';
      		}else{
     	 		$html+=' <a href="index.php?c=expect&e='+data.id+'" class="member_index_resume_t_cz_bth ">修改简历</a> ';
      		}
       
       		$html+='<a href="'+data.url+'" target="_blank" class="member_index_resume_t_cz_bth mt15">预览简历</a> <a onclick="layer_del(\'确定要刷新？\', \'index.php?c=resume&act=refresh&id='+data.id+'\');" href="javascript:void(0)" class="member_index_resume_t_cz_bth member_index_resume_t_cz_bth_hover mt15">刷新简历</a></div> <div class="member_index_resume_t_cz_tip" id="re'+data.id+'"> 刷新简历可提升排名，每天一刷，提高求职成功率！<i class="member_index_resume_t_cz_tip_lt"></i><a href="javascript:;" onclick="$(\'#re'+data.id+'\').hide();" class="member_index_resume_t_cz_tip_close"></a></div></div></div>';
    		if((data.edu==0 || data.training==0 || data.skill==0 || data.work==0 || data.project==0 || data.other==0) && data.doc==0){
 	   			$html+='<div class="member_index_resume_msg"><div class="member_index_resume_msg_r"><div class="member_index_resume_msg_r_t"> 您还有以下资料没有填写 <span class="member_index_resume_msg_span">（为了更快的找到工作，建议您立即完善简历！）</span> </div>';
 	   			if(data.work==0){
 	        	  	$html+='<a href="index.php?c=expect&e='+data.id+'#work_upbox" class="member_index_resume_msg_a">+ 工作经历</a>'; 
 	          	}
 	          	if(data.edu==0){
 	        	  	$html+='<a href="index.php?c=expect&e='+data.id+'#edu_upbox" class="member_index_resume_msg_a">+ 教育经历</a>'; 
 	         	}
 	          	if(data.training==0){
 	        	 	$html+='<a href="index.php?c=expect&e='+data.id+'#training_upbox" class="member_index_resume_msg_a">+ 培训经历</a>'; 
 	          	}
 	          	if(data.skill==0){
 	        	  	$html+='<a href="index.php?c=expect&e='+data.id+'#skill_upbox" class="member_index_resume_msg_a">+ 职业技能</a>'; 
 	          	}
 	          	if(data.project==0){
 	        	  	$html+='<a href="index.php?c=expect&e='+data.id+'#project_upbox" class="member_index_resume_msg_a">+ 项目经验</a>'; 
 	          	}
 	          	if(data.other==0){
 	        	  	$html+='<a href="index.php?c=expect&e='+data.id+'#other_upbox" class="member_index_resume_msg_a">+ 其他信息</a>'; 
 	          	}
 	          	if(!data.description){
 	        	 	$html+='<a href="index.php?c=expect&e='+data.id+'#description_upbox" class="member_index_resume_msg_a">+ 自我评价</a>'; 
 	          	}
 			  	$html+='</div>';
    		}
    		$html+=' </div>'	
			
			$("#myresumelist").html($html);
		})
}
 
function marquee(time,id){
	$(function(){
		var _wrap=$(id);
		var _interval=time;
		var _moving;
		_wrap.hover(function(){
			clearInterval(_moving);
		},function(){
			_moving=setInterval(function(){
			var _field=_wrap.find('li:first');
			var _h=_field.height();
			_field.animate({marginTop:-_h+'px'},800,function(){
			_field.css('marginTop',0).appendTo(_wrap);
			})
		},_interval)
		}).trigger('mouseleave');
	});
}

<?php echo '</script'; ?>
>
 <?php echo '<script'; ?>
>marquee("2000",".sxl .sxlist");<?php echo '</script'; ?>
>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['userstyle']->value)."/footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
